package com.hxzy.mapstruct;

import com.hxzy.controller.mobile.address.req.AddressBookAddReq;
import com.hxzy.controller.mobile.address.req.AddressBookEditReq;
import com.hxzy.controller.mobile.address.resp.AddressBookResp;
import com.hxzy.entity.AddressBook;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface AddressBookMapStruct {

    AddressBookMapStruct INSTANCE = org.mapstruct.factory.Mappers.getMapper(AddressBookMapStruct.class);

    AddressBookResp convert(AddressBook db);

    List<AddressBookResp> convert(List<AddressBook> list);

    AddressBook convert(AddressBookAddReq req);

    AddressBook convert(AddressBookEditReq req);

}
